package com.jumlabs.util.data;

import java.util.Collection;

public  class PaginationInfo<T> {
  private long numberOfPages;
  private long pageNumber;
  private long totalNumberOfItems;
  
  public long getTotalNumberOfItems() {
	return totalNumberOfItems;
}
public void setTotalNumberOfItems(long totalNumberOfRecords) {
	this.totalNumberOfItems = totalNumberOfRecords;
}
private  Collection<T> results;
  
public long getNumberOfPages() {
	return numberOfPages;
}
public void setNumberOfPages(long numberOfPages) {
	this.numberOfPages = numberOfPages;
}

public int getPageItemCount(){
	if(results!=null)
		return results.size();
	return 0;
}

public long getPageNumber() {
	return pageNumber;
}
public void setPageNumber(long pageNumber) {
	this.pageNumber = pageNumber;
}
public Collection<T> getResults() {
	return results;
}
public void setResults(Collection<T> results) {
	this.results = results;
}
  
}
